package com.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.entity.User;
import com.repository.UserDao;
import com.service.base.BaseServiceImp;

@Service("UserService")
public class UserServiceImp extends BaseServiceImp<User> implements UserService {
	@Autowired
	private UserDao userDao;
	
	@Override
	@Transactional
	public boolean insertprice(User o) {
		// TODO Auto-generated method stub
//		String nid=o.getUser_id();
		User user=new User();
//		user.setId(nid);
		List<User> users=userDao.find(user);
		if (users.size()>0) {
			return false;
		}
		//String goodId=o.getGoodId();
		return true;
	}
}
